#include "contentsearcher.h"

#include <QtGui/QApplication>
#include <QTextCodec>
#include <QTranslator>

#define TRANSLATOR_PATH	"C:\\Users\\admin\\Documents\\Visual Studio 2010\\Projects\\content-searcher\\ContentSearcher\\ContentSearcher"
#define TRANSLATOR_ZH	"contentsearcher_zh.qm"

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);

	QTranslator translator_ZH;
	translator_ZH.load(TRANSLATOR_ZH, TRANSLATOR_PATH);
	a.installTranslator(&translator_ZH);

	QTextCodec *codec = QTextCodec::codecForName("GB2312");  

	QTextCodec::setCodecForLocale(codec);  
	QTextCodec::setCodecForCStrings(codec);  
	QTextCodec::setCodecForTr(codec);  

	ContentSearcher contentSearch;
	contentSearch.show();
	return a.exec();
}
